package com.yumeko.controller;

import com.yumeko.service.ResumeFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: First_Generation_Cloud
 * @description:
 * @author: Zheng Hao
 * @create: 2020-04-21 18:02
 */
@RestController
@RequestMapping("/autodeliver")
public class AutodeliverController {
    @Autowired
    private ResumeFeignClient resumeFeignClient;

    @GetMapping("/checkState/{userId}")
    public String findResumeOpenState(@PathVariable Long userId) {
        String resumeOpenState = resumeFeignClient.findResumeOpenState(userId);
        return resumeOpenState;
    }
}
